package com.platform.auth.dto;

import com.sun.istack.internal.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("客户端DTO")
@AllArgsConstructor
@NoArgsConstructor
public class OAuth2ClientDTO {
    @ApiModelProperty("客户端ID")
    @NotNull
    //@Min(value = 10, message = "id必须大于10")
    //@Max(value = 150, message = "id必须小于150")
    private String clientId;
    @ApiModelProperty("客户端密钥")
    private String clientSecret;
    @ApiModelProperty("资源id列表")
    private String resourceIds;
    @ApiModelProperty("授权范围")
    private String scope;
    @ApiModelProperty("授权方式")
    private String authorizedGrantTypes;
    @ApiModelProperty("回调地址")
    private String webServerRedirectUri;
    @ApiModelProperty("权限列表")
    private String authorities;
    @ApiModelProperty("认证令牌时效")
    private Integer accessTokenValidity;
    @ApiModelProperty("刷新令牌时效")
    private Integer refreshTokenValidity;
    @ApiModelProperty("扩展信息")
    private String additionalInformation;
    @ApiModelProperty("是否自动放行")
    private String autoapprove;
}
